package com.qch.demo;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

/**
 * @Author qch
 * @Date 2021/5/11
 */
public class App {
    public static void main(String[] args) {
        BlockingQueue blockingQueue=new ArrayBlockingQueue(20);
        //创建两个线程
        /*new Thread(new Producer(blockingQueue)).start();
        new Thread(new Consumer(blockingQueue)).start();*/
        int count=1;
        new Thread(new ThreadTest(count)).start();
        new Thread(new Thread2Test(count)).start();
        //System.out.println(count);
    }
}
